Pro Microsoft Teams Development by Rick Van Rousselt

Pro Microsoft Teams Development by Rick Van Rousselt

Author:Rick Van Rousselt
Language: eng
Format: epub
ISBN: 9781484263648
Publisher: Apress


// Create the bot as a transient. In this case the ASP Controller is expecting an IBot.

services.AddTransient<IBot, QABot>();

I hope you agree with me that there isn’t much to it to update our company app to also have bot capabilities. It’s time to test it out. Open the Bot Framework emulator, fire up your debug session, and connect to your bot. We didn’t create an entry in Azure for this bot yet, so the only option we have is to go through our localhost. Connect to the correct port (in my case, 56797) and the /api/messages endpoint. This should give you a connection, and whatever you say to your bot, it will always respond with Hi like in Figure 10-1.

Figure 10-1We added bot capabilities to our tabbed app



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.